package ex.com.jm.food.utils;

/**
 * 产生十位的随机数，作为订单编号
 * @author zhaojw
 *
 */
public class RandomUtils {

	public static void main(String args[]) {
	      int a[] = new int[16];
	      String id="1";
	      for(int i=0;i<a.length;i++ ) {
	          a[i] = (int)(10*(Math.random()));
	          //System.out.print(a[i]);
	          id+=a[i];
	      }
	      System.out.println(id);
	   }
	
	public static String createId(){
		 int a[] = new int[16];
	      String id="1";
	      for(int i=0;i<a.length;i++ ) {
	          a[i] = (int)(10*(Math.random()));
	          //System.out.print(a[i]);
	          id+=a[i];
	      }
	      return id;
	}
}
